package com.demo.matchfind;

import com.demo.common.Dish;
import com.demo.common.DishUtil;

import java.util.List;

public class TestAnyMatch {
    public static void main(String[] args) {
        List<Dish> menu = DishUtil.getDishes();
        if(menu.stream().anyMatch(Dish::isVegetarian))
            System.out.println("The menu is (somewhat) vegetatian friendly!");
    }
}
